package jnpf.engine.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.tags.Tag;
import jnpf.base.ActionResult;
import jnpf.base.UserInfo;
import jnpf.base.controller.SuperController;
import jnpf.base.vo.PageListVO;
import jnpf.base.vo.PaginationVO;
import jnpf.constant.MsgCode;
import jnpf.engine.entity.FlowCommentEntity;
import jnpf.engine.entity.TestEntity;
import jnpf.engine.model.flowcomment.FlowCommentForm;
import jnpf.engine.model.flowcomment.FlowCommentInfoVO;
import jnpf.engine.model.flowcomment.FlowCommentListVO;
import jnpf.engine.model.flowcomment.FlowCommentPagination;
import jnpf.engine.service.FlowCommentService;
import jnpf.engine.service.TestEntityService;
import jnpf.exception.DataException;
import jnpf.permission.entity.UserEntity;
import jnpf.util.JsonUtil;
import jnpf.util.ServiceAllUtil;
import jnpf.util.UploaderUtil;
import jnpf.util.UserProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import javax.validation.Valid;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

/**
 * 流程评论
 *
 * @author JNPF开发平台组
 * @version V3.1.0
 * @copyright 引迈信息技术有限公司
 */
@RestController
@RequestMapping("/api/workflow/exa")
public class TestController  {

    @Resource
    private TestEntityService testEntityService;
    /**
     * 获取流程评论列表
     *
     * @return
     */
    @Operation(summary = "")
    @GetMapping("/list")
    public ActionResult list() {
        List<TestEntity> list = testEntityService.list();
        System.err.println();
        return ActionResult.success(list);
    }


    @Operation(summary = "")
    @GetMapping("/Inlist")
    public ActionResult Inlist() {
        Map<String,String> map = new HashMap<>();



        map.put("handleId","00b0d34d-a5d6-43f7-a7d4-c8d5fbca8f8f,00d9428a-25f5-4ceb-ab9b-1a3c71989bb4");
        return ActionResult.success(map);

    }

}
